import request from '@/utils/request'

/**
 *
 * @returns 返回用户的频道
 */
export function reqGetChannels() {
  return request.get('/v1_0/user/channels')
}
/**
 *
 * @returns 返回所有用户的频道
 */
export function reqGetAllChannels() {
  return request.get('/v1_0/channels')
}

/**
 * 重置我的频道的数据
 * @param {*} channels
 * @returns
 */
export function reqResetChannels(channels) {
  return request.put('/v1_0/user/channels', {
    channels
  })
}

// export const reqResetChannels = (channels) => {
//   return request({
//     method: 'put',
//     url: '/v1_0/user/channels',
//     data: {
//       channels
//     }
//   })
// }
